package com.lagou.model;

public class User implements java.io.Serializable{
    private static final long serialVersionUID = -4466051359237909613L;//序列化
    private String userName;//用户姓名
    private String passWord;//用户密码
    private int classroom;

    public User(String userName, String passWord, int classroom) {
        this.userName = userName;
        this.passWord = passWord;
        this.classroom = classroom;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public int getClassroom() {
        return classroom;
    }

    public void setClassroom(int classroom) {
        this.classroom = classroom;
    }

    public User(String username, int classroom) {
        this.userName = username;
        this.classroom = classroom;
    }
    public User(String username, String passWord) {
        this.userName = username;
        this.passWord = passWord;
    }

    @Override
    public String toString() {
        return "User{" +
                "userName='" + userName + '\'' +
                ", passWord='" + passWord + '\'' +
                '}';
    }
}
